package com.kantboot.business.bp.web.admin.controller;

import com.kantboot.business.bp.domain.entity.BusBpSubject;
import com.kantboot.business.bp.service.IBusBpSubjectService;
import com.kantboot.system.user.domain.entity.SysUser;
import com.kantboot.util.common.result.RestResult;
import com.kantboot.util.core.controller.BaseAdminController;
import com.kantboot.util.core.param.PageParam;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 年级的控制器
 */
@RestController
@RequestMapping("/bus/bp/admin/subject")
public class BusBpSubjectControllerOfAdmin extends BaseAdminController<BusBpSubject,Long> {

    @Resource
    private IBusBpSubjectService service;

    /**
     * 获取年前台数据
     * getBodyData
     */
    @RequestMapping("/getBodyData")
    public RestResult getBodyData(@RequestBody  PageParam<SysUser> param) {
        return RestResult.success(service.getBodyData(param),"getSuccess","获取成功");
    }



}
